/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-02-01
 * Time: 13:41
 */
public class This_reference_practice {
    public String name;
    public int age;
    public int id;

    public void setStudent(String name,int age,int id){
        this.name=name;
        this.age=age;
        this.id=id;
    }

    public void printStudent(){
        System.out.println("姓名:"+this.name+" 年龄："+this.age+" 学号："+this.id);
    }

    public void reference(){
        this.printStudent();
    }

    public static void main(String[] args) {
        This_reference_practice student1=new This_reference_practice();
        student1.setStudent("周文俊",20,221549250);
        student1.reference();
    }

}
